HPCC-10414 Add general statistics to the workunit

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