It's worth mentioning that this is not a theoretical issue, I've already hit it while writing unit tests.
- (ITS#7853) Improve safety of mdb_env_close dw
- Re: (ITS#7853) Improve safety of mdb_env_close dw
- Re: (ITS#7853) Improve safety of mdb_env_close hyc
- Re: (ITS#7853) Improve safety of mdb_env_close hbf
