Hundreds of Muslims gathered to protest a survey over whether a mosque was built over a Hindu temple. Authorities banned gatherings in a bid to curb the unrest.