The tech boom has vaulted the San Francisco office market to become the hottest in the U.S. But behind this strength is a market packed with big bets on growth—risky wagers that could prove painful should the historically turbulent tech industry retrench.