[openEuler-5.10 359/496] tty: n_gsm: fix race condition in gsmld_write()