[PATCH openEuler-5.10 115/120] tty: n_gsm: fix wrong command retry handling