Founders who have sold their companies for hundreds of millions of dollars have warned their peers to get cash up front in any sale rather than accepting lengthy golden handcuffs.