Fix #3320: we forgot to save/restore the GC register variable