refactored locking in ServiceConnectorsOut/Simulation/LocalSimulationConnector.cs