CLAUSTHAL-ZELLERFELD, Germany—Nestled in the spruce trees in the Harz Mountains of northern Germany is a bark-eating pest not much bigger than a sesame seed. Known as “book printers” for the lines they eat into the bark that fan out from a single spine resembling words on a page, these eight-toothed…