JCR-3382 let getNode do a permission check when the item is in the item manager cache: applying patch by Frank van Lankvelt.

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/branches/2.6@1464061 13f79535-47bb-0310-9956-ffa450edef68