This is a variant of the bug fixed in 49fbca5b18, where a GC-notification callback still could cause problems in a GC during a finalization callback. (Bug found by running tests in GC-stress mode.)
49fbca5b18