CA-140596: Refactor - rename

Signed-off-by: Mate Lakat <mate.lakat@citrix.com>
CA-140596: Fix lock concurrency issue

If the namespace directory was cleaned up before Lock tried to open the
lockfile, it would result the IOError to bubble up. To avoid this
situation, the lockfile creation will be re-tried until it succeeds.

Signed-off-by: Mate Lakat <mate.lakat@citrix.com>