fixed race condition related to concurrent access to cql_connection_impl_t