leveldb: fix incorrect use of WaitGroup
Merge remote-tracking branch 'upstream/master'