A newly unsealed lawsuit alleging that Tesla Inc.'s board of directors failed to appoint a general counsel who could stand up to controversial CEO Elon Musk highlights the limited options that company counsel have when dealing with difficult bosses.