Remove the lock in init(). Since addPeer func() require that lock. When do log replay in the init(), there will be deadlock