long releaseHash(int id) {
    Lock lock = getLock(id).writeLock();
    lock.lock();
    try {
      return getHashes(id).remove(id);
    }
    finally {
      lock.unlock();
    }
  }
long releaseHash(int id)