Btrfs: add missing error checks to add_data_references