HPCC-12282 Update Roxie to use new stats mechanism

The head of CLocalWorkUnit::setStatistic needs to be changed

to

    if (!scope || !*scope) scope = GLOBAL_SCOPE;

otherwise if no beginScope is called this will use an empty scope.