The creator and star of Netflix’s “Lady Dynamite” has turned her mental health struggles into brilliant comedy.