A court-ordered survey of the 16th-century Jama Masjid, a Mughal-era mosque, in Moradabad's Sambhal, led to multiple deaths, arrests and a riot that brought the city to a grinding halt.