Natural mass hierarchy among three heavy Majorana neutrinos for resonant leptogenesis under modular A4 symmetry