Flextronics said its fourth-quarter profit surged from a year ago, when it incurred one-time charges, even as sales waned. Earnings topped Wall Street estimates, but sales fell short of expectations.