U.S. flips switch late to take commanding Walker Cup lead