SDL: tls: wrap reference to a mutex into an #if !SDL_THREADS_DISABLED test.

From 7d02248cf599c5c934e0437c1099a147e3414144 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Fri, 2 Apr 2021 14:36:53 -0400
Subject: [PATCH] tls: wrap reference to a mutex into an #if
 !SDL_THREADS_DISABLED test.

---
 src/thread/SDL_thread.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/thread/SDL_thread.c b/src/thread/SDL_thread.c
index 438612c24..1f13ce49e 100644
--- a/src/thread/SDL_thread.c
+++ b/src/thread/SDL_thread.c
@@ -141,10 +141,10 @@ SDL_Generic_GetTLSData(void)
         }
         SDL_AtomicUnlock(&tls_lock);
     }
-#endif /* SDL_THREADS_DISABLED */
-
     SDL_MemoryBarrierAcquire();
     SDL_LockMutex(SDL_generic_TLS_mutex);
+#endif /* SDL_THREADS_DISABLED */
+
     for (entry = SDL_generic_TLS; entry; entry = entry->next) {
         if (entry->thread == thread) {
             storage = entry->storage;