Retry when update-reset repo fails

This should address issues with "Permission denied (publickey).", as it doesn't
usually fail twice in a row for the same repo.

Change-Id: If866c8ceaeceadae5d31c51ba559fc8e665a15b4