tty: split the lock up a bit further