[downloader/external] Fix infinite retries for curl (closes #19303)

No match.