Beijing loved Thomas Piketty’s critique of capitalism—until he turned to China