Refine spinlock