Issue 12009 - local import and "unable to resolve forward reference" error

https://d.puremagic.com/issues/show_bug.cgi?id=12009

`Module::semantic2` could be invoked from local imports, even when some local symbol semantics are not yet completed.