Added a mutex to block sending to peers while peer list is being reshuffled