A Mass. appeals court issued what one expert called a "bombshell" tax ruling in a case involving a tech founder's stock sale.