Fix too-often retry bug after 4xx with more hosts than hosts_max_retry.