[NEXUS-6150] log warning if unable to write lock file