Fix locking of nodeGetUnique [DONT MERGE YET]