tty: hide unused pty_get_peer function