[PATCH OLK-6.6] btrfs: replace BUG_ON() with error handling at update_ref_for_cow()