Apple Text Stubs (.tbd): various fixes

* ensure tapi lookup is applied only for concerned toolchains
* fix typos in tests

Fixes: #25182
2 files changed