Doctors, nurses and pharmacists are refusing to work in South Africa’s prisons, Parliament heard on Wednesday.