How the cult of self-optimization was born on the factory floor—with a manager's stopwatch in hand.