TESTS: Add new test test_sync_setgroups to test_glibc_thread_support.c

This test is almost same as test_sync_setgid but is aimed to setgroups
functions.

Signed-off-by: Robin Hack <hack.robin@gmail.com>