A growing share of tech companies are going public with two classes of stock, one type for regular shareholders and another for founders and other insiders with more voting power.