fts-solr: Retry loop if curl_multi_fdset() sets maxfd to -1

curl_multi_fdset() may return CURLM_OK and set maxfd to -1.
It happens when libcurl has no socket to wait on so it can't return any.