gh-143543: Fix re-entrant use-after-free in itertools.groupby (GH-143738) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com> Co-authored-by: Petr Viktorin <encukou@gmail.com>