In 1849, as Gustave Flaubert toiled at a draft of his historical novel “The Temptation of Saint Anthony,” his friends staged an emergency intervention. The book, they told him, was a failure.