The boom in the technology sector in the past two years brought California law firms record profits. But as tech companies retrace their steps, so too are the firms that serve them.