Added profiling to spinlock.c

Observations:
The critical section needs to be tiny.