[Local Catalog] Fix flaky and slow POS catalog sync tests #16227
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

For WOOMOB-1441
Just one review is required.
Description
Fixes flaky test failures and slow test execution in POS catalog sync tests caused by concurrent access to shared state and retry delay logic. I was able to reproduce the flakiness and crash locally by running the test suite repeatedly.
Issues Fixed
MockPOSCatalogSyncRemotestartFullSync_propagates_network_errorsandstartIncrementalSync_throws_error_when_product_loading_failstests were taking 14 seconds to complete due to exponential backoff retry delaysChanges
Counteractor for tracking call counts in test mocks and assertionsMockPOSCatalogSyncRemoteto useCounterinstead of plain integers for all call count propertiesBatchedRequestLoaderTeststo useCounterfor thread-safe attempt trackingretryDelayparameter to sync service initializers to allow configuring retry delays (defaults to 2.0s for production)retryDelay: 0to eliminate unnecessary delays in test executionSteps to reproduce
Run the following test suites repeatedly locally to verify that each test suite completes almost right away without crashing:
BatchedRequestLoaderTestsPOSCatalogFullSyncServiceTestsPOSCatalogIncrementalSyncServiceTestsTesting information
I tested the above in Xcode 26 with iPad A16 iOS 18.4 simulator.
RELEASE-NOTES.txtif necessary.