Jury convicts inmate in trial involving deadly prison riots