Also change LMDB Cmake variables to CACHE rather than upgrading them through several parent scopes.
This reverts commit b21335642e.
b21335642e