[PATCH 6.6.y] btrfs: ensure no dirty metadata is written back for an fs with errors