Beijing’s accelerating production of submarines is set to challenge U.S. undersea dominance.