Three loop MS renormalization of the Curci–Ferrari model and the dimension two BRST invariant composite operator in QCD