Fix locking of nodeGetUnique