4638. [bug] Reloading or reconfiguring named could fail on some platforms when LMDB was in use. [RT #45203] (cherry picked from commit bf05e66b)