Modeling of the Closure of Metallurgical Defects in the Magnesium Alloy Die Forging Process