HPCC-12282 Simplify stats definitions so all done in one place

Also implement statistics gatherer that updates a workunit

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>

Minor changes following code review

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-12282 Move roxie global stats into new mechanism

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-12392 Internal error in Roxie using -fdisableLocalOptimizations=1

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>