Btrfs: fix race of using total_bytes_pinned