[PATCH openEuler-5.10-LTS 116/121] tty: n_gsm: fix wrong command retry handling