code: protected Object pathSynch(Path path) {
          Object newref = new Object();
          Object oldref = locks.putIfAbsent(path.getPath(), newref);
          return null != oldref ? oldref : newref;
      }
docs: Return an object that can be synchronized on for the given path.
  
  @param path path
  
  @return synch object