fix recursive calls to curl_multi API from the user handler