mod_posix: Lock pidfile when in use, shut down if we can't write or lock the pidfile