Consortium of investment firms led by Advent International is buying McAfee for $12 billion, or $26 per share. The deal is scheduled to close in the first half of 2022.