Death penalty seems inherently barbaric as in practice you cannot avoid executing people who are not found to be innocent until years or decades later. Even if you think guilt can be proven beyond any doubt, I know of no jurisdiction with an error-free record.
So you say it is barbaric not for executing someone, but for wrongly punishing someone. How is that different for a regular life sentence? Taking someone's liberties wrongly seems just as barbaric.