docs: public synchronized boolean lock() throws KeeperException, InterruptedException {
          if (isClosed()) {
              return false;
          }
          ensurePathExists(dir);
  
          return (Boolean) retryOperation(zop);
      }