Social ostracism has been a common punishment for millennia. But freezing someone out harms both the victim and the perpetrator.