[PATCH 6.12 500/565] btrfs: ensure no dirty metadata is written back for an fs with errors