Fix number of threads in agent massive actions. closes #2690

Conflicts:
	inc/agent.class.php