leveldb: wait pending compation to finish before checking total tables (fixes #163)
leveldb: wait pending compation to finish before checking total tables (fixes #163)

btcsuite/goleveldb,syndtr/goleveldb