code: public LockedInodePath lockFullInodePath(long id, LockPattern lockPattern)
        throws FileDoesNotExistException {
      LockedInodePath inodePath = lockInodePathById(id, lockPattern);
      if (!inodePath.fullPathExists()) {
        inodePath.close();
        throw new FileDoesNotExistException(ExceptionMessage.INODE_DOES_NOT_EXIST.getMessage(id));
      }
      return inodePath;
    }
docs: Locks a path and throws an exception if the path does not exist.
  
  @param id the inode id to lock
  @param lockPattern the pattern to lock with
  @return a locked inode path for the uri