Use assert when running from multithreaded code as BOOST_CHECK_* are not thread safe
Use assert when running from multithreaded code as BOOST_CHECK_* are not thread safe

Github-Pull: #14069
Rebased-From: 737670c036e802e0fd8b51efffb41131d08f0204

chaincoin/chaincoin,chaincoin/chaincoin,chaincoin/chaincoin,chaincoin/chaincoin,chaincoin/chaincoin,chaincoin/chaincoin