Change locking of nodeGetUniqueFromIndexLookup

o Now guaranteed to hold a read lock if a node is existing or a write lock if no node was found
o Use a fresh index reader to see concurrent changes
o This commit fixes some code analysis warnings