A new book by the British cultural journalist Dorian Lynskey chronicles our centuries-old obsession with doomsday scenarios.