spinlock: fix build with clang