api: add integer return code for functions hook_{signal|hsignal}_send