Once vectx_open() succeeds, the stat, device, root device and read error
paths all returned without freeing the context, leaking it.
We also closed the fd before calling vectx_close(), which may need to
read the remainder of the file to finish hashing it. This is harmless
as-is because we've always read the whole file by that point, but close
it afterwards so that we aren't relying on that.
Sponsored by: The FreeBSD Foundation
Sponsored by: Klara, Inc.