removed deadlock from btrfs code