Effect of flavor-dependent partonic transverse momentum on the determination of the W boson mass in hadronic collisions