Toward the determination of the gluon helicity distribution in the nucleon from lattice quantum chromodynamics