keep tree locked until after endScene