HPCC-12666 Fix regressions in workunit refactoring (HPCC-12250)

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
This call was missing - which meant that  pointers to stale ptree items were retained too long