core,sys: fix storage types for irq API usage

* should not have any effect as long as `unsigned` and `int` are compatible
* also fix one cosmetic `unsigned int` -> `unsigned` for consistency