* Updated SocketCore class to use a mutex for the global socket list.
* Changed MessageQueue::clear to public.