Ur question. is somewhat confusing.
In fact, Spinlocks have an advantage that there is no context switching as the thread would be put in loop checking the spinlock's state thus wont be context switched out. Thus, spinning is effective in case locks are held for short duration.
In traditional mutex, the thread would have been put to sleep when the lock was held by another thread and thus, context switched out.