Issue #20746: Fix test_pdb to run in refleak mode (-R).  Patch by Xavier de Gaye.