The need to protect its interests and to compete with China explains Japan's embrace of Thailand's military regime.