Use a lockfile instead of a pidfile