Refactor NaiveSpinLock