A court has convicted 20 people for the 2018 mob lynching of two men falsely accused of kidnapping children.