HPCC-11509 ESP cache of packagemap info leaking connections

A couple of uses of getPackageMapById leaked the resulting Dali connection and
thus left the packagemap locked.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #5932 from richardkchapman/packagemap-leak

HPCC-11509 ESP cache of packagemap info leaking connections

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Merge remote-tracking branch 'origin/candidate-4.2.6' into closedown-4.2.x

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Merge branch 'closedown-4.2.x' into candidate-5.0.0

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