Framework implementation for setgroups32(2), bug fix in getgroups32(2)