Small spinlock optimization