Thailand have their King and Strong unified Armed Forces, which can stop the Politicians divided the country like The Ukraine Politicians did. For one thing an unified armed forces (at least for many of the nation in SEA) whatever the 'so called' human rights and democracy activist says, is the guarantor for Nation stability.
Look on Indonesia, in 1998 after Soeharto fall, every western analyst put their bet, and sure the country will be balkanised within 2-3 years. In did not happen for one thing due to unified Armed Forces. Same thing with Thailand.
No matter how much politicians 'murky' the domestic conditions, The Armed Forces will see that the Nation will not going further apart. Just like in Indonesia after Soeharto fall, the Armed Forces will stabilise the conditions, before they let the Politicians 'screew-up' again. It's the price for Democracy.
Still have to wander though, will this always be 4-5 years cycle for Thailand ? But then again looking at the market, seems they already see and expect this, and so does the Thailand businesses. So perhaps everybody already see this as normal for Thailand. You can say in some way, Thailand military is behave like an invisible hand in the market. Always corrected the conditions, before everything goes out of hand.