Fixed another possible race condition in the new DB session backend.
Fixed another possible race condition in the new DB session backend.

djoudi/otrs-gitimport-test,djoudi/otrs-gitimport-test,djoudi/otrs-gitimport-test