util/vector: Fix u_vector_foreach when head rolls over