[PATCH 6.1 111/192] btrfs: replace BUG_ON() with error handling at update_ref_for_cow()