Make sure session has an active transaction