Purges of top generals means China’s leader has a freer hand to deal with the self-ruled island that Beijing claims as its own.