A youth involved in a riot at Darwin's Don Dale detention centre has been jailed for four years.