A defendant who cut his mother's throat and blamed demons for the attack has been sentenced to life imprisonment for murder.