Fix GCC GC-related bug where nested static functions cause collection whilst parent function body is still not finished.