sensord: change the interface of set_attribute_*