(#1809) - Defer allDocs callback until processing is complete

This fixes a race in leveldb.js _allDocs.