[PATCH 6.17 742/849] btrfs: ensure no dirty metadata is written back for an fs with errors