Heavy-quark mass effects in Higgs boson production at the LHC