A Turkish court on Thursday sentenced an ex-leader of the pro-Kurdish HDP party to 42 years in prison for his alleged role in deadly 2014 protests.