Add a socket server to incement value with/without lock protection