Fixed deadlocking issue with SpinRWMutex