[PATCH 6.6 494/529] btrfs: ensure no dirty metadata is written back for an fs with errors