spinlock variable protection