MINOR: proxy; replace the spinlock with an rwlock

This is an anticipation of finer grained locking for the queues. For now
all lock places take a write lock so that there is no difference at all
with previous code.
diff --git a/src/listener.c b/src/listener.c
index 7061f9a..1947fdb 100644
--- a/src/listener.c
+++ b/src/listener.c
@@ -295,7 +295,7 @@
 	}
 
 	if (!lpx)
-		HA_SPIN_LOCK(PROXY_LOCK, &px->lock);
+		HA_RWLOCK_WRLOCK(PROXY_LOCK, &px->lock);
 
 	if (!lpr)
 		HA_SPIN_LOCK(PROTO_LOCK, &proto_lock);
@@ -319,7 +319,7 @@
 		HA_SPIN_UNLOCK(PROTO_LOCK, &proto_lock);
 
 	if (!lpx)
-		HA_SPIN_UNLOCK(PROXY_LOCK, &px->lock);
+		HA_RWLOCK_WRUNLOCK(PROXY_LOCK, &px->lock);
 }
 
 /* default function called to suspend a listener: it simply passes the call to