OAK-1132: QueryEngine #executeQuery creates a new revision on each call

Use the base state for query index lookups

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1537547 13f79535-47bb-0310-9956-ffa450edef68
OAK-1132: QueryEngine #executeQuery creates a new revision on each call

Only update the SegmentRootBuilder state in getNodeState() if there are transient changes.

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1537548 13f79535-47bb-0310-9956-ffa450edef68