The sizzling investment market is giving promising startups the cash they need to bulk up their C-suites—expansions that often include new legal chiefs.