TEHRAN — A Bahraini court on Monday sentenced 64 people, most of them Shia scholars, to life in prison, among them Sheikh Isa Qassim, the country’s senior religious authority. Five others got 15 years.