consul: Adding Defer to MDBTxn
consul: Adding session invalidation