@Override
        public void release() {
            if (lock != null)
                lock.close();
        }
A lock which works inside a single vm
zkfacade/src/main/java/com/yahoo/vespa/curator/mock/MockCuratorFramework.java