An inquest was told how he died during a 21-year sentence