There is nothing cut and dry:
is the person in the crowd stoning a woman to a slow and painful death virtuous behind the cultural curtain ?
Or part of a religious exploitation? Or part of a political exploitation ?
And yes, if they have a strong belief in the hadith and the local cleric has ruled that there person is an adulterer and proves 4 people witnessed it (not hard to due in corrupt regimes anyway), then why wouldn't you feel virtuous while carrying out the punishment given by God.