[IOT-3140] Fix roles deinit crash
[IOT-3140] Fix roles deinit crash

Change-Id: I27bab5b348a4b0c52319447ce52e9ebdf3755628
Signed-off-by: Aleksey Volkov <a27d9cdf263d3bb0a7e1b2122425c0a535a3f64c@samsung.com>

iotivity/iotivity,rzr/iotivity,iotivity/iotivity,iotivity/iotivity,iotivity/iotivity,iotivity/iotivity,rzr/iotivity,rzr/iotivity,iotivity/iotivity,rzr/iotivity,iotivity/iotivity,rzr/iotivity,rzr/iotivity,iotivity/iotivity,rzr/iotivity