Added mutex locks to Controller.cpp