[PATCH 5.17 212/225] tty: n_gsm: fix wrong command retry handling