NOTE(termie): using LinkFileLock in pidlockfile resulted in a bug, modified the code by replacing it with FileLock