Years of investment in data, AI, and governance gave Lenovo the flexibility to manage disruptions and scale new tech.