CHSFRMWRK-33 #close used a structure that help to manage the same socket on multiple thread and for more message

Signed-off-by: Claudio Bisegni <Claudio.Bisegni@lnf.infn.it>