Fix thread-checker warnings in client packages by using std::atomic or const for boolean flags.
std::atomic
const