[Issue 7980] LMDB added support for user context in compare function