Your expectation that these should commute may or may not be due to being confused by the ambiguous notation we use for partial derivatives, which doesn't mark what's being held fixed, only what's being varied. Note that you're taking the derivative w.r.t. $t$ while holding $X$ fixed and the derivative w.r.t. $x$ while holding $t$ fixed, so these are two unrelated partial derivatives in different coordinate systems $(X,t)$ and $(x,t)$ that we have no reason to expect to commute. See also https://math.stackexchange.com/q/51955/
P.S.: The reason that partial derivatives within one and the same coordinate system usually commute is basically that
$$
\begin{eqnarray}
&&
\left(\frac{\left(f(x+\Delta x,y+\Delta y)-f(x+\Delta x,y)\right)}{\Delta y}-\frac{\left(f(x,y+\Delta y)-f(x,y)\right)}{\Delta y}\right)/\Delta x\\
&=&
\left(\frac{\left(f(x+\Delta x,y+\Delta y)-f(x,y+\Delta y)\right)}{\Delta x}-\frac{\left(f(x+\Delta x,y)-f(x,y)\right)}{\Delta x}\right)/\Delta y\;.
\end{eqnarray}
$$
This works because you reach the same point whether you first move by $\Delta x$ keeping $y$ fixed and then move by $\Delta y$ keeping $x$ fixed or vice versa, whereas this is usually not the case if the two steps are along axes in different coordinate systems.
For $x=x(X,t)$ and $X=X(x,t)$, the general formula for transforming partial derivatives yields, with a vertical bar marking the variable held fixed for first derivatives, and all second derivatives referring to the coordinates $(X,t)$,
$$
\begin{eqnarray}
\left.\frac{\partial}{\partial t}\right|_X
\left.\frac{\partial}{\partial x}\right|_t
&=&
\left.\frac{\partial}{\partial t}\right|_X\left(\left.\frac{\partial t}{\partial x}\right|_t\left.\frac{\partial}{\partial t}\right|_X+\left.\frac{\partial X}{\partial x}\right|_t\left.\frac{\partial}{\partial X}\right|_t\right)
\\
&=&
\left.\frac{\partial}{\partial t}\right|_X\left(\left.\frac{\partial X}{\partial x}\right|_t\left.\frac{\partial}{\partial X}\right|_t\right)
\\
&=&
\left(\left.\frac{\partial}{\partial t}\right|_X\left.\frac{\partial X}{\partial x}\right|_t\right)
\left.\frac{\partial}{\partial X}\right|_t
+
\left.\frac{\partial X}{\partial x}\right|_t
\frac{\partial^2}{\partial t\partial X}\;
\end{eqnarray}
$$
(since $\partial t/\partial x|_t=0$), whereas
$$
\begin{eqnarray}
\left.\frac{\partial}{\partial x}\right|_t
\left.\frac{\partial}{\partial t}\right|_X
&=&
\left(\left.\frac{\partial t}{\partial x}\right|_t\left.\frac{\partial}{\partial t}\right|_X+\left.\frac{\partial X}{\partial x}\right|_t\left.\frac{\partial}{\partial X}\right|_t\right)\left.\frac{\partial}{\partial t}\right|_X
\\
&=&
\left(\left.\frac{\partial X}{\partial x}\right|_t\left.\frac{\partial}{\partial X}\right|_t\right)\left.\frac{\partial}{\partial t}\right|_X
\\
&=&
\left.\frac{\partial X}{\partial x}\right|_t
\frac{\partial^2}{\partial X\partial t}
\\
&=&
\left.\frac{\partial X}{\partial x}\right|_t
\frac{\partial^2}{\partial t\partial X}\;.
\end{eqnarray}
$$
So commuting these two partial derivatives from different coordinate systems leads to an additional term
$$
\left.\frac{\partial}{\partial t}\right|_X
\left.\frac{\partial}{\partial x}\right|_t
-
\left.\frac{\partial}{\partial x}\right|_t
\left.\frac{\partial}{\partial t}\right|_X
=
\left(\left.\frac{\partial}{\partial t}\right|_X\left.\frac{\partial X}{\partial x}\right|_t\right)
\left.\frac{\partial}{\partial X}\right|_t
$$
proportional to a first derivative, which arises because the rate of change of $X$ with $x$ changes with $t$ (which is of course not the case in a single coordinate system, where the rate of change of $x$ with $x$ is constant, namely $1$). Indeed, in your case, where you apply the mixed derivative to $x$ itself, we have
$$
\begin{eqnarray}
\left(\left.\frac{\partial}{\partial t}\right|_X\left.\frac{\partial X}{\partial x}\right|_t\right)
\left.\frac{\partial}{\partial X}\right|_t
x
&=&
\left(\left.\frac{\partial}{\partial t}\right|_Xt^{-2}\right)
\left.\frac{\partial}{\partial X}\right|_t
t^2X
\\
&=&
-2t^{-3}\cdot t^2
\\
&=&
-\frac2t\;,
\end{eqnarray}
$$
in agreement with your calculation.