set_debugfunction: correctly allocate Curl.t