HPCC-11937 Fix race condition in smart join

HPCC-11953 Throw error when RIGHT rows would be lost

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
I am assuming that Jake is going to look at this change, and look at it.  I'll add a jira HPCC-11965.