Clang9 warning and compiler error with atomics

+Alexey