Enabling Time-series Foundation Model for Building Energy Forecasting via Contrastive Curriculum Learning