Enh: assign the lock before creating the server
Enh: assign the lock before creating the server

so that if creating the server fails then the lock is available.

Alignak-monitoring/alignak,titilambert/alignak,gst/alignak,titilambert/alignak,titilambert/alignak,Alignak-monitoring/alignak,gst/alignak,titilambert/alignak,gst/alignak,gst/alignak