[PATCH 4.9 133/137] serial: fix race between flush_to_ldisc and tty_open