ITS#7968 syncprov_matchops(), filter.
ITS#7968: add locking into syncrepl.

Mutex must be held even for a read-access of a cookie state,
as there may be a race with write in other thread.
mdb-backend: logging
lmdb: more usefull info from mdb_stat tool.