Stabilization of a metastable crystalline phase by twinning