OSSpinLock is added to make increment, decrement methods thread safe