Use the pid of inotifywait in lockfile