There are definitions LOKI_THREADS_ATOMIC_FUNCTIONS In the file "threads.h". In case of compiling for windows there is a definition of the static variable
static CRITICAL_SECTION atomic_mutex_; \
This variable should be initialized before any using by ::InitializeCriticalSection() method in the Win32 API. But there is no such code. Additionally it should be freed after using by ::DeleteCriticalSection().
The bug is only applied to compilations for windows platform.