Thailand, a long-time US ally, is also a crucial regional partner for Beijing in light of its fierce rivalry with Washington.