[PATCH 5.18 0860/1095] tty: n_gsm: fix race condition in gsmld_write()