Thai junta deftly rebalances its US-China relations