Added lock to controll access to simulationState in SimulationController class