Fixing threading issues with PeerConnectionTests that were causing deadlocks.