A prison does not only lock its inmates inside, it keeps all others out. Her strongest prison is of her own construction.
When you're unhinged, things make their way out of you that should be kept inside, and other things get in that ought to be shut out. The locks lose their powers. The guards go to sleep. The passwords fail.