tty: replace BKL with a new tty_lock