HPCC-9764 Fix problems with lightweight join and unordered

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