The flogging of singer Parastoo Ahmadi for a livestreamed performance highlights an embattled Iranian clerical elite struggling to maintain public obedience.