[PATCH 5.15 166/177] tty: n_gsm: fix wrong command retry handling