[PATCH 4.14 091/217] tty: Fix data race between tiocsti() and flush_to_ldisc()