* Wrap txn_begin and txn_end in S_DATABASE mutex