Infinitely many solutions for a nonlocal elliptic system of $(p_1,\ldots,p_n)$-Kirchhoff type with critical exponent