MCSO settles with family of man nearly beaten to death in jail