HPCC-10643 Don't generate HASH and SMART joins inside child queries

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