tty: fix flushing inactive ttys

Inactive ttys can no longer be flushed.

Signed-off-by: Levente Kurusa <levex@linux.com>