Get the lockfile file if it exists
The path to the directory to scan
The JSON object if the file exists, otherwise null
Get the lockfile file if it exists