Time-dependent metal ionization and the persistence of collisionally excited emission lines in the diffuse ionized gas of star-forming galaxies