dictGet('name', ...) should check for XML dictionary 'name' if XML dict=name does not exists then use SQL dictionary from the currectDatabase()

{
        std::optional<size_t> min_id;
        Info * info = nullptr;
        auto pred = [&]
        {
            info = getInfo(name);
            if (!info)
                return true; 
            if (!min_id)
                min_id = getMinIDToFinishLoading(forced_to_reload);
            if (info->state_id >= min_id)
                return true; 
            if (info->loading_id < min_id)
                startLoading(*info, forced_to_reload, *min_id);
            return false; 
        };
        if (timeout == WAIT)
            event.wait(lock, pred);
        else
            event.wait_for(lock, timeout, pred);
        return info;
    }
    void loadImpl(const FilterByNameFunction & filter, Duration timeout, bool forced_to_reload, std::unique_lock<std::mutex> & lock)