HPCC-12128 - MP connections take too long

Resolve mp connection deadlock when A->B and B->A with lower random number

Signed-off-by: Mark Kelly <mark.kelly@lexisnexis.com>
Isn't it the case, that an attachSocket can happen here, after 'attachsect' released and check above done (and nothing found) ?

With the original problem as a consequence? i.e. other end is blocked in this process in attachSocket on connectsect, and this process will never get a reply (well not until lengthy timeout, sleep, unlock, retry).
That being the case, it would timeout after CONNECT_TIMEOUT_INTERVAL on the readtms below and detect the attachchk next time around..

So whilst as close as possible to the readtms, there is still a window afaics.