fix Issue 11767 - doubly mixed-in struct "failed semantic analysis"

Each mixed-in symbols are in independent scope, and their mangled names should also be different.

To fix the issue, assign scope-local unique name for each unnamed `TemplateMixin`s, as same as lambdas.