Gluon shadowing effects on J/psi and Upsilon production in p+Pb collisions at sqrt s_NN = 115 GeV and Pb+p collisions at sqrt s_NN = 72 GeV at AFTER@LHC