The dissolved gases lower the freezing point. When pressure is removed, the freezing point rises and the liquid freezes.
You are correct, this is the primary cause. I didn't think CO2 depressed the freezing point much, but it turns out club soda has a freezing point of -10C.