port spinlock to windows