[PATCH 6.6 168/269] btrfs: replace BUG_ON() with error handling at update_ref_for_cow()