Flex-office firms are struggling, and companies are rethinking leases for offices. Here's how real-estate markets, jobs, and deals are being impacted.