China’s leader draws from autocrats’ playbook to expand power, oust potential rivals and lay groundwork to rule indefinitely.