A Mississippi man who killed his gay lover to cover up their relationship was sentenced to 40 years in prison