Retry HTTP requests on timeout.

We see occasional timeout errors when we try to lookup databags on
the hosted chef server. I looked at the code and saw that there is
retry logic, but not for the timeout we see. This patch changes
the logic so that also these timeouts trigger a retry.