President Joko Widodo has ordered the release of five political prisoners in province after 12 years in jail.