Add TCP timeout flag to worker sockets
Modify ring_buffer singleton
The singleton now use the DCLP (Double Checked Locking Pattern)