Share curl ssl, dns and cookie caches between threads