Prospects for probing the gluon density in protons using heavy quarkonium hadroproduction