A couple who tortured and killed a six-year-old boy have been given long jail sentences.