multithreading httpclient for c base libcurl