Musk has warned for years about the dangers of artificial intelligence. Then again, he stands to make a lot of money off it.