BarkerGilmore’s survey found that median total compensation for in-house attorneys shot up 21% in 2021 after climbing 4% a year earlier.