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
2 files changed