https://clickhouse-test-reports.s3.yandex.net/18817/9049599e367bcccd809f45af138452f965b3303a/stress_test_(undefined)/test_run.txt.out.log
{
    guards_lock.lock();
    --it->second.counter;
    if (!it->second.counter)
    {
        table_lock.unlock();
        map.erase(it);
    }
}
DDLGuard::~DDLGuard()
{
    bool is_database = it->first.empty();
    if (!is_database)
        db_mutex.unlock_shared();
    removeTableLock();
}
}