Can be shortened to `SAVE_ERRNO(setgroups(0, NULL))` but apart from that LGTM.