MAJOR: threads/peers: Make peers thread safe

A lock is used to protect accesses to a peer structure.

A the lock is taken in the applet handler when the peer is identified
and released living the applet handler.

In the scheduling task for peers section, the lock is taken for every
listed peer and released at the end of the process task function.

The peer 'force shutdown' function was also re-worked.
diff --git a/include/types/peers.h b/include/types/peers.h
index a77a094..2fc7435 100644
--- a/include/types/peers.h
+++ b/include/types/peers.h
@@ -67,6 +67,9 @@
 	struct shared_table *remote_table;
 	struct shared_table *last_local_table;
 	struct shared_table *tables;
+#ifdef USE_THREAD
+	HA_SPINLOCK_T lock;	 /* lock used to handle this peer section */
+#endif
 	struct peer *next;	  /* next peer in the list */
 };