#rust spinlock implementation