Small thread safety fix in HttpClient.