HPCC-12250 Allow pluggable interface to workunit creation

More complete split of CWorkUnitFactory - should be ready for writing a
Cassandra version of the factory / workunit classes. Still need to think
about how locking is done.

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