Such rights mean nothing when people lose their respect for them. Democracies work when a sufficiently vast majority of those within them belive that the systems are fundamentally good.
Lynching represent a public belief that whatever systems are in place are insufficient to bring justice. They happen regardless of what rights are declared in some legal text or whatever. The solution to building a better democracy always returns to building better, more trusted institutions, and building thr peoples trust that they are fair, and inalienable rights are just another such institution.