[NEXUS-6151] make work directory if needed
[NEXUS-6150] log warning if unable to write lock file