Cover all of the ioctl handler with a set vnet; what was there from
old days was not enough anymore.
Also use curthread for read/write operations on the device, rather than
the cache credentials; things can move around and the cached ones might
not be the right ones.
Sponsored by: The FreeBSD Foundation