Add `MlasIsDynamicQGemmAvailable()` helper and use that in place of platform-specific checks (#26668)
### Description
<!-- Describe your changes. -->
Add `MlasIsDynamicQGemmAvailable()` helper function and use that in
place of platform-specific checks.
### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
Try to reduce platform-specific code.