[Issue 10005] Fix flags not getting committed when using named dbs in lmdb