[PATCH 5.4 213/389] tty: n_gsm: fix race condition in gsmld_write()