It took my docs years to finally piece things together about what was going on with me. (BPD) I think that had to do with me though. I am the expert at diverting away from the truth about the real me underneath.
I really wouldn't worry about being committed to a state hospital where you are locked up for a long time. People who are sent there are usually really confused with reality and are a danger to themselves and others. (Danger does not just include physical harm, but say things like so confused that they couldn't find their way back home.) But, even if you were admitted to one, they don't necessarily keep you there for life. They try to help you so that you can be on your way again. Like the temporary stay at psych hospital wards. I don't know, I guess what I am trying to say is that there can be some good in things that we are afraid of.