newton: thread safety fixes for Peers map