On infrared and mass singularities of perturbative QCD in a quark-gluon plasma