[PATCH openEuler-5.10 117/120] tty: n_gsm: fix reset fifo race condition