China grew into the world’s leading shipbuilder over the last decade as hundreds of private yards opened to compete with state-run companies.