groups: simplify struct group_info allocation