[PATCH openEuler-1.0-LTS 16/21] tty: Prevent writing chars during tcsetattr TCSADRAIN/FLUSH