Tanzanian prisoners sentenced to life imprisonment