Investment firm Thoma Bravo is buying Proofpoint for $12.3 billion, or $176 per share. The transaction is expected to close in Q3 2021.