[PATCH 4.19 308/313] serial: fix race between flush_to_ldisc and tty_open