The reason Holmes was not committed has to do with the difficulty in getting someone committed. He would have had to tell his psychiatrist specifically who he was targeting, how he planned to commit the crime, and specifically when he planned to do it. Otherwise, his doctor was legally bound by doctor-patient confidentiality from contacting the police without the patient's permission. Holmes would never have agreed to that so the doctor's hands were tied. No details = no involuntary commitment.