An Oklahoma City man who was blocked from using a “sleepwalking” defense at his murder trial was sentenced Friday to life in prison plus 20 years.