CAPT: Contrastive Pre-Training based Semi-Supervised Open-Set Learning