Fix CIPANGO-193: Possible dead lock between session and transaction

Signed-off-by: Nicolas <nicolas@cipango.org>