The Brazilian owner of Havaianas, the maker of flip flops, is taking a 49.9 percent stake in the San Francisco company.