Fix call_method_in_thread for async client.