tty: Serialize tty flow control changes with flow_lock