Fix GC crash with gob/parent handling

This fixes CureCode issue #1969