Added check to disallow more than one instance of the RI Layer's C SDK.
Added check to disallow more than one instance of the RI Layer's C SDK.

Without proper re-entrancy, the RI Layer's C SDK should not support or try
to support more than one instance of the stack. If it does, unknown
behavior may occur. This commit eliminates this possible cause for error.

Change-Id: Ib85d29cdd2b8fa55a7415f57e8ec7e88bc164927
Signed-off-by: Joseph Morrow <74b1946a3796b7d1c8ad79fee44616e505fb0cee@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/749
Tested-by: jenkins-iotivity <09cb29e8a2b473a2c978382eec13ee06fa017bda@opendaylight.org>
Reviewed-by: Sachin Agrawal <e527dde4abdf871552470c254efd4939572046d8@intel.com>
Reviewed-by: Doug Hudson <b04bafbc81ee8df410ecf2f46758b79c3c711082@intel.com>
Reviewed-by: Erich Keane <ec9f61fe526c14bb62c55d7c978f025ee6b3583d@intel.com>

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