Empowering Time Series Analysis with Synthetic Data: A Survey and Outlook in the Era of Foundation Models