code: public LockResource lockInode(InodeView inode, LockMode mode) {
      return mInodeLocks.get(inode.getId(), mode);
    }
docs: Acquires an inode lock.
  
  @param inode the inode to lock
  @param mode the mode to lock in
  @return a lock resource which must be closed to release the lock