add spin lock class based on Darwin OS spin locks