Fix tty locking. o Correct expected values for VT_LOCKSWITCH ioctl. o Check current window for locked state.
Sponsored by: The FreeBSD Foundation