spinlock: end if statement