Fixed InProcServerWrapper to be thread safe
Fixed InProcServerWrapper to be thread safe

A few of the variables/collections in the server wrapper were not
properly protected against multi-threading.  This fix adds a mutex
to the class to ensure that all accessed items are protected.
Additionally, they are moved out of the root namespace to prevent
polution.

Change-Id: I2eedb9bf9b1960ff7a018a2ca1e15183e42bd9cd
Signed-off-by: Erich Keane <ec9f61fe526c14bb62c55d7c978f025ee6b3583d@intel.com>
(cherry picked from commit a31834d16272a5b8d3382fb2959676804157c732)
Reviewed-on: https://gerrit.iotivity.org/gerrit/214
Tested-by: jenkins-iotivity <09cb29e8a2b473a2c978382eec13ee06fa017bda@opendaylight.org>
Reviewed-by: Sudarshan Prasad <18992b2df49d20c769d3f89a8cc0a9f38a9dccaa@intel.com>

iotivity/iotivity,rzr/iotivity,kartben/iotivity,santais/iotivity_1.1,santais/iotivity,santais/iotivity_1.1.0,santais/iotivity,santais/iotivity_1.1.0,santais/iotivity_1.1,santais/iotivity,iotivity/iotivity,iotivity/iotivity,santais/iotivity_1.1.0,santais/iotivity,santais/iotivity_1.1,tienfuc/iotivity-democlient-snap,WojciechLuczkow/iotivity,rzr/iotivity,iotivity/iotivity,rzr/iotivity,tienfuc/iotivity-democlient-snap,kartben/iotivity,kartben/iotivity,santais/iotivity,rzr/iotivity,tienfuc/iotivity-democlient-snap,WojciechLuczkow/iotivity,santais/iotivity_1.1,iotivity/iotivity,tienfuc/iotivity-democlient-snap,tienfuc/iotivity-democlient-snap,WojciechLuczkow/iotivity,kartben/iotivity,iotivity/iotivity,WojciechLuczkow/iotivity,kartben/iotivity,santais/iotivity_1.1,tienfuc/iotivity-democlient-snap,kartben/iotivity,santais/iotivity_1.1.0,santais/iotivity,tienfuc/iotivity-democlient-snap,rzr/iotivity,iotivity/iotivity,santais/iotivity_1.1.0,santais/iotivity,rzr/iotivity,WojciechLuczkow/iotivity,iotivity/iotivity,santais/iotivity_1.1,tienfuc/iotivity-democlient-snap,santais/iotivity_1.1,santais/iotivity_1.1.0,kartben/iotivity,tienfuc/iotivity-democlient-snap,WojciechLuczkow/iotivity,tienfuc/iotivity-democlient-snap,WojciechLuczkow/iotivity,santais/iotivity_1.1.0,kartben/iotivity,WojciechLuczkow/iotivity,santais/iotivity_1.1,rzr/iotivity