Address build failure on ARM (#28120)
This pull request updates the platform-specific handling of spin-wait
pauses in the `SpinPause` function to improve support for ARM64
architectures, especially on Windows. The changes ensure that the
correct intrinsic or assembly instruction is used depending on the
compiler and target platform.
Platform-specific spin-wait improvements:
* Added support for `_M_ARM64` and `_M_ARM64EC` (Windows ARM64 and
ARM64EC) in the header inclusion logic, ensuring the correct intrinsics
are available when compiling for these platforms.
* Updated the `SpinPause` implementation to use the MSVC-specific
`__yield()` intrinsic for `_M_ARM64` and `_M_ARM64EC` targets, and
reserved the GCC/Clang inline assembly version for `__aarch64__`
(Linux/Unix ARM64). This ensures compatibility and optimal behavior
across compilers and platforms.