delete tree and subnode with locking