Thai prisoners sentenced to life imprisonment