Work around problems caused by failed submodule clones corrupting the working directory on the build runner. Add 10 retries for cloning submodules.