HPCC-12250 Allow pluggable interface to workunit creation

Minor changes following review

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