One-loop QCD mass effects in the production of polarized bottom and top quarks