San Francisco’s AI boom is fueling a mansion shortage, with 50-offer bidding wars and even $25 million all-cash bids being outmatched.