Framework implementation of setgroups32(2) - needed by OpenSSH's sshd