A Beaux Arts mansion in San Francisco sold for $26 million, making it the city's most expensive home sale so far this year.