private long registerLock(Lock lock){
  long id=LOCK_ID_GEN.incrementAndGet();
  lockMap.put(id,lock);
  return id;
}

private long registerLock ( Lock lock ) { long id = LOCK_ID_GEN . incrementAndGet ( ) ; lockMap . put ( id , lock ) ; return id ; }
registers a lock in a map .
