MODE-2173-master Fixed the checking of READ permissions for nodes retrieved from queries.

This is a similar fix as the one from the 3.x branch, but it's __not fully functional__ because the fact that the query result iterators rely on `Batch` & `Sequence` makes it impossible atm to correctly implement them taking into account JCR permissions.

The updated `JcrQueryManagerTest` contains a permissions-related test case which will fail exposing this issue.