In “Giving Up the Ghost” Hilary Mantel turns back the pages of her own life, weaving humor, grief and creative obsession into a candid narrative that shows how memory both haunts and heals the writer.