Indonesia is set to release about 30,000 prisoners early as the Southeast Asian nation seeks to avoid a possible surge in coronavirus infections in its overcrowded prisons.