Grab the lock when cleanup node btree