add initlock in lmdb backend
Merge pull request #1711 from mind04/lmdb

add initlock in lmdb backend