Fix typo in CApiTest.VersionConsistencyWithApiVersion. (#27902)
### Description
<!-- Describe your changes. -->
Fix typo in CApiTest.VersionConsistencyWithApiVersion. It wasn't
checking the third version string component.
### 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. -->
Fix test.