Fixed many races caused by multithreaded usage of CryptoPP::AutoSeededRandomPool by making it per-thread.
Fixed lint warning.