rebuild FileLock with PidFileLock class