That’s not a threat. “The death penalty” is a lawful punishment carried out by the state in response to conviction of certain crimes, not mob violence (technically). Just because the end result is death, does not mean that prescribing it is a threat, just like how “you should die of pancreatic cancer” isn’t a threat.
Now I’ve got to go shower after saying that the death penalty isn’t mob violence.