[websocket] lock as soon as possible the client
[websocket] lock as soon as possible the client

ouistiti-project/libhttpserver,ouistiti-project/libhttpserver,mchalain/libhttpserver,mchalain/libhttpserver