gerrit_changes.py: Retry query up to 5 times