Fix bug in free-threaded Python where a resurrected object could lead to
a negative ref count assertion failure.