Btrfs: Add btree locking to the tree defragmentation code