release the lock to stop the peers and re-grab the lock to proceed changing server status