This API was taken from smbfs(5) and made into a small library [1].
After two decades it has seen very few changes, and smbfs remains the
only consumer. We should keep it this way, as the smbfs module itself is
under discussion for removal. Move the logic into the netsmb module.
Bump the minor version of the netsmb module. We can add a gone_in()
warning to stable branches.
[1] d8589bd5cbad