[PATCH 5.15 155/214] btrfs: replace BUG_ON() with error handling at update_ref_for_cow()