With Stephen Sondheim’s second collection of his lyrics, the hyper-articulate, neurotic, modernist master Broadway songwriter takes a curtain call