From semiconductors to chicken wings, global supply chains are experiencing whiplash. A Harvard professor explains how to avoid that.