message: LOCK vNodes before use
diff: @@ -755,8 +755,13 @@ void ThreadSocketHandler()
  }
  }
  }
  - if (vNodes.size() != nPrevNodeCount) {
  - nPrevNodeCount = vNodes.size();
  + size_t vNodesSize;
  + {
  + LOCK(cs_vNodes);
  + vNodesSize = vNodes.size();
  + }
  + if(vNodesSize != nPrevNodeCount) {
  + nPrevNodeCount = vNodesSize;
  uiInterface.NotifyNumConnectionsChanged(nPrevNodeCount);
  }
  