block/curl: Fix return value from curl_read_cb