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