DB - Only call pendingOpeningLock.lock() if the lock is not already held by the current thread
DB - Only call pendingOpeningLock.lock() if the lock is not already held by the current thread

Otherwise we end up increasing the lock hold count but never decreasing it since we only call unlock() once per transaction

eluvio/lmdb-je,eluvio/lmdb-je