Vector meson pair production in two-photon collisions near threshold