Make the getgroups32 syscall EMU and add a test.

Resolve #1083.