Mutex is added to XSControl_WorkSession to prevent data races during reading and writing. Tests are added to check the behavior of STEP readers/writers in multithreading environment.