Fixed segfault in SpinLock.