What is/was tunneling into this 2x4?
From the similarity of the lines, I'd say you pulled something out of the old 2x4 (nails) and dragged them across the board, perhaps as you twisted and pulled to separate/remote the board from wherever it was before. I don't believe there are any insects that travel in perfect unison like that.