sensord: add get_sensor_*_ex internal APIs for getting error properly