GH-106008: Fix refleak when peepholing `None` comparisons (#106367)

2 files changed