[PATCH 4.9 40/66] tty: n_gsm: fix wrong command retry handling