if magma erupts from a volcano at instant T it 100% instantaneously becomes lava even before it has a chance to flow downhill. if lava flows into a cave or fissure at instant T1 it 100% instantaneously turns back into magma again. Neat trick, yeah?
my hypothesis is that this sort of thing happens because vulcanology is boring AF when nothing's erupting