The ice-cream maker’s strange legal agreement with its acquirer 25 years ago was bound to cause trouble