Issue #14548: Make multiprocessing finalizers check pid before running

This protects from possibilty of gc running just after fork.
2 files changed