Boost.Atomic workaround