A remarkably high number of companies report being dissatisfied with their joint ventures. Here’s what to know before getting into one—and the pitfalls to avoid.