Make sure std::atomic is initialized correctly

G++ seems to have some issues with default initialization of
std::atomic