libutil: Reimplement getlocalbase()
- Get rid of the pointless LOCALBASE_CTL_LEN mechanism
- Apply minimal normalization to the paths obtained from the environment or sysctl variable
- Turn the manual page into a manual page
- Add tests
MFC after: 1 week
Reviewed by: se
Differential Revision: https://reviews.freebsd.org/D58362