Fix typo.
One more patch to LMDB to fix non GCC builds.

Use different memory barrier when compiled with Solaris Studio compiler
as __sync_synchronize is GCC only.
Fix error message.
Upgrade path cache to generic interface.