[REG2.066a] Issue 13220 - [ICE] 'global.gaggedErrors || global.errors' on line 750 in file 'statement.c'

https://issues.dlang.org/show_bug.cgi?id=13220

Increase `TemplateInstance::semantic()` reentrant ability, like as #3454.