[PATCH 4.14 50/78] tty: n_gsm: fix wrong command retry handling