tty: Prevent deadlock in n_gsm driver