An inmate was sentenced to more than four years in prison Thursday for his role in the 2018 killing of the infamous gangster James “Whitey” Bulger.