Add Mutex protection around critical sections