HPCC-8828 Add new metrics to Roxie

Various minor bug fixes and performance enhancements in Roxie metrics
reporting.

Add some global metrics to supplement the ones taht are reported per query or
per query class.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>