Also set secondary groups when changing the process identity