Note that by the Chinese Remainder Theorem, the map $$\mathbf{Z} / pq \mathbf{Z} \to\mathbf{Z} / p \mathbf{Z} \times \mathbf{Z} / q \mathbf{Z}, \; x \mapsto (x \mod p, \; x \mod q)$$
is an isomorphism. Now consider the map $$f: (\mathbf{Z} / p \mathbf{Z})^\times \times (\mathbf{Z} / q \mathbf{Z})^\times \to (\mathbf{Z} / p \mathbf{Z})^\times \times (\mathbf{Z} / q \mathbf{Z})^\times, \; (x, y) \mapsto (x^3, y^3).$$
Consider the group-homomorphism $$(\mathbf{Z} / p \mathbf{Z})^\times \to (\mathbf{Z} / p \mathbf{Z})^\times, x \mapsto x^3.$$
As shown in this answer: Solve $x^3 \equiv 1 \pmod p$ for $x$, the homomorphism is injective for $p - 1$ not divisible by $3$ (use quadratic reciprocity). This, of course, works for $q$ as well.
This readily implies that $f$ is injective. Since $P$ is a map $X \to X$ and $X$ is finite, any injective function is surjective.
It seems, however, like there should be an easier answer...