Synchronized ControllerThread and ModelThread.