Fix race condition in updateDiscardStats (#973)
Fix race condition in updateDiscardStats (#973)

The TestGetMore test fails with race condition in updateDiscardStats
function.
See https://teamcity.dgraph.io/viewLog.html?buildId=19032&buildTypeId=Badger_UnitTests
dgraph-io/badger,dgraph-io/badger