backport from upstream: Added missing check for http.StatusOK in Stat.
s3: backport from upstream: s3: do some retries in ListBucket, to work around Amazon-vs-Go's HTTP/TLS bug