Elon Musk has linked the debate over AI-generated software and the future of hand-coding to wider questions about technological competition, warfare and national security.