Change setgroups to affect all the threads in the process.