[Refactoring] Add `TemplateDeclaration::evaluateConstaint`
fix Issue 10133 - ICE for templated static conditional lambda

Evaluate template constraint under the emulated instantiation scope.
Remove hacks for access check inside template constraint
Relax restrictions on issue 6538 and 9361

Now pseudo symbols are placed in emulated scopes, and taking them by alias parameter is allowed.