Strong disagree. Murderers should be locked up, and the not-of-sound-mind defense is a weak excuse, and too often looked towards as a nice clean way to get away with murder.
You probably have "not of sound mind" and "temporary insanity" confused.
Aside from that, the law must take into consideration one’s ability to reason because that is the method in which a jury finds facts.. based on reasonability. You wouldn’t convict someone who suffered from a mental handicap to a punishment that was equal to someone who did the same with full faculties, right?
It's also not entirely easy to get found not fit to stand trial - it's not just you and your lawyer and a friendly psychiatrist - the prosecution has the right to call its own mental health professionals and they are required to have access to the defendant, and more.