httpc: Change the http_client_thread locking