sensord: fix the bug that set_attribute returns bool