added mutex locks for the action-client and the goal-manager.