Some are serving life sentences for offences as trivial as shoplifting or possessing small amounts of narcotics.