How to lock closed opportunities/transactions?

How to lock closed opportunities/transactions?