Fix ARMv7 build (#13891)
Fix ARMv7 build error on Linux.
### Description
`cpuinfo_*` functions are only available if `CPUINFO_SUPPORTED` set and
therefore `"cpuinfo.h"` included.
Fixed with extended conditional code.
### Motivation and Context
Compilation with ARMv7 on Linux system fails.