Primordial black hole formation during the QCD phase transition: threshold, mass distribution, and abundance