sensors: HAL: fix the memory corruption caused by CalibrationManager
sensors: HAL: fix the memory corruption caused by CalibrationManager

The logic will cause the destructor be called multiple times and
throw an exception. Fix the issue by re-initialize the self pointer
to NULL in the destructor. Some other minor issues are also fixed
in this patch.

Change-Id: I0ae31f7bb57ef7b3c5cd7ba7a06dc96d7ff60372

TheStrix/platform-hardware-qcom-sensors,redmi2/android_hardware_qcom_sensors,dianlujitao/platform_hardware_qcom_sensors,redmi2/android_hardware_qcom_sensors,dianlujitao/platform_hardware_qcom_sensors,TheStrix/platform-hardware-qcom-sensors