tty_io: fix remaining pid struct locking