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>