#2837 Use cache folder for lockfile
The CI fail about the meteor metric is unrelated to this PR 
Fixes #2837 

Use a cache folder directory to store the FileLock.

The issue was that the lock file was in a readonly folder.
