BUILD: threads: Rename SPIN/RWLOCK macros using HA_ prefix

This remove any name conflicts, especially on Solaris.
diff --git a/src/hathreads.c b/src/hathreads.c
index 36bdca2..2856a9f 100644
--- a/src/hathreads.c
+++ b/src/hathreads.c
@@ -120,7 +120,7 @@
 
 	thread_sync_barrier(&barrier);
 	if (threads_want_sync & tid_bit)
-		SPIN_LOCK(THREAD_SYNC_LOCK, &sync_lock);
+		HA_SPIN_LOCK(THREAD_SYNC_LOCK, &sync_lock);
 }
 
 /* Exit from the sync point and unlock it if it was previously locked. If the
@@ -135,7 +135,7 @@
 		return;
 
 	if (threads_want_sync & tid_bit)
-		SPIN_UNLOCK(THREAD_SYNC_LOCK, &sync_lock);
+		HA_SPIN_UNLOCK(THREAD_SYNC_LOCK, &sync_lock);
 
 	if (HA_ATOMIC_AND(&threads_want_sync, ~tid_bit) == 0) {
 		char c;
@@ -151,7 +151,7 @@
 __attribute__((constructor))
 static void __hathreads_init(void)
 {
-	SPIN_INIT(&sync_lock);
+	HA_SPIN_INIT(&sync_lock);
 #if defined(DEBUG_THREAD) || defined(DEBUG_FULL)
 	memset(lock_stats, 0, sizeof(lock_stats));
 #endif