The Thai prime minister’s coalition is hanging by a thread, while her Cambodian counterpart looks sidelined.