Allow creating of accounts during statement import
If a user tries to create an account during statement import, the
account was not created at all.
This change makes sure that the enclosing engine transaction is only
opened after the account is selected. Doing that too early causes the
creation to fail.
BUG: 403745
FIXED-IN: 5.0.4