[PATCH 5.17 219/225] tty: n_gsm: fix broken virtual tty handling