[PATCH openEuler-1.0-LTS 14/49] tty: Fix data race between tiocsti() and flush_to_ldisc()