Changed SPINLOCK_PROFILE back to #if so that defining SPINLOC_PROFILE 0 turns
off the profilign of spinlocks