mount{,d}(8): Use the pidfile(3) API for handling mountd's PID file.

Taken-from: FreeBSD