btrfs: add assertion helpers for spinning writers