NEXUS-5306: Nexus should lock workdir.

Added a LockFile implementation inspired by Eclipse's own implementation. Using it, the working directory is locked, preventing multiple instances to run against it.

Issue:
https://issues.sonatype.org/browse/NEXUS-5306

CI:
https://bamboo.zion.sonatype.com/browse/NX-OSSF76