added overlooked locks necessary noticed when checking recent opensim git commit log