xbps_transaction_commit: add some debugging in error paths.