Two-loop planar master integrals for Higgs → 3 partons with full heavy-quark mass dependence