HPCC-10323 ESP incorrectly checks for errors querying file perms

In dasess.cpp, CClientSessionManager::getPermissionsLDAP never reads
the error code from the message buffer into the local 'e' variable. This
code fix reads the error code, ensuring either the caller will receive
the error or an exception will be thrown if the caller does not want it

Signed-off-by: William Whitehead <william.whitehead@lexisnexis.com>
Merge pull request #5080 from RussWhitehead/getPerms

HPCC-10323 ESP incorrectly checks for errors querying file perms

Reviewed-By: Jake Smith <jake.smith@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>