ITS#7917 fix mdb_dbi_open

Don't let dummy go out of scope
ITS#7917