delete node with locking