QCD factorization for the pion diffractive dissociation to two jets