When Maria Bamford checked herself into a psychiatric hospital, it was only the beginning of a spiral into mental illness that prevented her from doing comedy for two years.