Made spinlock.c more scalable.