[Python-checkins] Revert "bpo-42160: tempfile: Reduce overhead of pid check. (GH-22997)"