A 21-year-old carpenter has been sentenced after his friend died following a “dangerous” chokehold on a boys’ weekend.