libprocstat: add procstat_getadvlock(3)
(cherry picked from commit 039d1496b0790a27cbec18e06b9494bf41254019)