btrfs: simplify waiting loop in btrfs_tree_lock