CMake tests: Add retry wrapper for flaky Xcode tests
The test_i18n_subdir*_xcode tests occasionally fail due to a spurious
xcodebuild crash during CMake's compiler detection phase. This appears
to be an issue with the Xcode/Parallels VM combination on CI machines,
manifesting as "thread is already initializing this class\!" errors.
Add a POSIX-compliant retry wrapper script that:
- Detects the spurious failure pattern in test output
- Retries up to 3 times if detected
- Treats persistent spurious failures as PASS to avoid blocking CI
- Exits immediately on real (non-spurious) test failures
Task-number: QTBUG-138855
Change-Id: Iaedbe3cbfe77c7181c770fbf4747728c8436c9ba
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>