Windows : Thread protection when setting recv_block_cache from session to avoid corruption in queue. Upgrade atomic functions to work with C++ : - try to search for (C++), then <stdatomic.h>(C), then throw a cmake error. - split datab management from utils and make it work for C and C++