Non-perturbative improvement of quark mass renormalization in two-flavour lattice QCD