Fix `keep_session=True` doesn't work when a transaction is joined by flush   and other manngers bug

Seee #5