No, the timing was random. The resets weren't aligned with the lava at all. (I fell into the lava a few times, but that's just consequence for missing.)