HPCC-11712 - Avoid write lock on disconnect unless neeeded

A connection disconnect was grabbing an exclusive lock to the
shared dataRWLock unconditionally, when it only needed it if it
was altering the store. This was causing extra contention and
thread serialization.

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
Community Edition 4.2.6-rc10 Release Candidate 10

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-11777 Fix CLocalEnvironment cache thread safeness

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
Merge pull request #6125 from jakesmith/hpcc-11777

HPCC-11777 Fix CLocalEnvironment cache thread safeness

Reviewed-By: Gavin Halliday <gavin.halliday@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
HPCC-11808 Missing alias information from control:queries

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-11808 Missing alias information from control:queries

Fix issue from review

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #6120 from jakesmith/hpcc-11712

HPCC-11712 - Avoid write lock on disconnect unless needed

Reviewed-By: Gavin Halliday <gavin.halliday@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #6152 from richardkchapman/roxie-queries-alias

HPCC-11808 Missing alias information from control:queries

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
HPCC-11801 ERROR: Query suspended: Different version of file already loaded

Need to clear the keystore cache after the delayed release has happened -
clearing it before will have no effect, as it only clears entries that are not
in use.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>