Codec2Client: Retry creation on failed transaction

This CL moves the retrying logic into ForAllStores(). Before the CL,
CreateInterfaceByName() will fail to detect C2_TRANSACTION_FAILED if the
last service that tries to create the component in ForAllStores() does
not have the requested component.

Test: atest CtsMediaTestCases -- \
--module-arg CtsMediaTestCases:size:small

Bug: 141907195
Change-Id: I98ee084ea14204bba15746e89514636254013aa5
(cherry picked from commit 1e7015ad0f62ca97c3d6f593d33201cf82da1cae)
2 files changed