add locking/unlocking VT switching support for FreeBSD