zfs: add root vnode caching
This replaces the approach added in r338927.
See r353150.
Sponsored by: The FreeBSD Foundation