NXDRIVE-111: Refactor PidLockFile and add Qt lock