VX(C): Add the retry pattern and its unit tests.