[sgen] Ensure togglerefs are only cleared after we proccess finalizers and CWT.

Clearing TRs before finalizers and CWT means user driver resurrection would fail
badly.