Everyone has heard of lynching in its most terrifying and malevolent form but the name actually comes from a fellow who came home after the Civil War to find no law enforcement in town. No sheriff, no judges no marshall to take prisoners to. Just a lot of scared people being terrorized by various forms of crime. So he organized people together, arrested criminals, tried them and metted out a variety of punishments including, but not restricted to, hanging. Law and order were restored. But because of a few people angry about being punished Judge Lynch went down in infamy. Unfortunately his name is now synonimous with racial murder.
I don't think societies need men in black masks executing people in their beds, but an ad hoc court backed up by a stocks and gallows, maybe so.
_________________________
A gentleman should always be able to break his fast in the manner of a gentleman where so ever he may find himself.--Good Omens