Fixes data race in ledger test
Fixes data race in ledger test

This CR makes a small fix in order to free
ledger test from data race

FAB-12436 #done

Change-Id: I79947b6c02098f84b7d1836bee295076abde4888
Signed-off-by: manish <a9d79eea65b0c2019f8af02c53bb35240dcbd527@gmail.com>

stemlending/fabric,binhn/fabric,muralisrini/fabric,manish-sethi/fabric-sidedb,muralisrini/fabric,manish-sethi/fabric-sidedb,jimthematrix/fabric,xixuejia/fabric,binhn/fabric,muralisrini/fabric,stemlending/fabric,manish-sethi/fabric-sidedb,hyperledger/fabric,binhn/fabric,manish-sethi/fabric-sidedb,manish-sethi/fabric-sidedb,jimthematrix/fabric,xixuejia/fabric,stemlending/fabric,xixuejia/fabric,manish-sethi/fabric,manish-sethi/fabric,manish-sethi/fabric-sidedb,hyperledger/fabric,manish-sethi/fabric-sidedb,stemlending/fabric