Two people who took their own lives in young offenders institution were ‘given a death sentence’