HPCC-11637 Avoid multiple concourrent ECLWatch onActivity queries

The code is merged from 5.0 code.

l also fix a bug in workunit.cpp: getTargetClusterInfo().

Signed-off-by: wangkx <kevin.wang@lexisnexis.com>