The law is currently not set up to facilitate the commitment of the dangerously mentally ill. The legislature needs to act to empower judges and just as importantly to build humane facilities to house and treat these people.
At any rate trusting psychiatrists to lock up people for the rest of their lives with no judicial oversight is INSANE. Within 20 years all gun owners, pro lifers, devout Christians, etc. would be in rubber rooms with no recourse.