MaskFactory: Towards High-quality Synthetic Data Generation for Dichotomous Image Segmentation