gerrit_util: retry on 404s for replication lag
gerrit_util: retry on 404s for replication lag

We usually only retry on server errors. But most 404s that
clients will recieve are due to replication lag, not due to
querying an issue that truly doesn't exist. This CL lets
gerrit_util (which is used primarily by git-cl) to retry on
404s to help fight errors due to replication lag.

R=a30c74fa30536fe7ea81ed6dec202e35e149e1fd@chromium.org

Bug: 717197
Change-Id: I26dbbf6c4895a13f7d57e4be3c23450111c949bc
Reviewed-on: https://chromium-review.googlesource.com/510000
Reviewed-by: Andrii Shyshkalov <a30c74fa30536fe7ea81ed6dec202e35e149e1fd@chromium.org>
Commit-Queue: Aaron Gable <bbed39beedae4cdb499af742d2fcd6c63934d93b@chromium.org>

CoherentLabs/depot_tools,CoherentLabs/depot_tools