HPCC-8781 Improved ONCE handling for roxie/hthor

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