TRQ-2997. Don't use a pointer to a node once we've unlocked.

Retrieve the node again using find_nodebyname() instead as the node could have been deleted
while it was unlocked.