LockManager and Minor revision on server operation

LockManager is work now, except for the waiting queue operation in
abnormal situation, will try to finish it later.