rename nodes with locking