[Refactoring] clean up Dsymbol::semantic
fix Issue 12023 - template mixin fails within template class
Merge pull request #3174 from 9rnsr/fix12023

[REG2.065a] Issue 12023 - template mixin fails within template class