btree's Lock should be redesigned.