When `gclient sync` fails, revert all local changes and try again

This can help when we switch from one Chrome release to another. Our
applied patches make switching the checkout fail, but if we revert our
patches it will succeed.