Do we need to add lock for `UnregisterPeer` and `UnregisterProxy`?