Protect commit in a context transactions.