HPCC-12755 Rationalize secure workunit interface

Minor changes following code review

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