Homoclinic orbits with many loops near a 02iω resonant fixed point of Hamiltonian systems