Death of North Texas inmate ruled a homicide