[PATCH 5.17 216/225] tty: n_gsm: fix reset fifo race condition