BDB fine grained lock manager