github.utils: Add max attempts & retry requests on connection errors
It's currently happening for some lister, preventing them from finishing their listing.
This adds the missing tests on that part. This also gives up after 5 attempts.
Refs. swh-lister!496 (merged)
Edited by Antoine R. Dumont