core,sys: fix storage types for irq API usage

* should not have any effect as long as `unsigned` and `int` are compatible
* also fix two cosmetic `unsigned int` -> `unsigned` for consistency
Merge pull request #1882 from LudwigOrtmann/disableIRQ-type

core,sys: fix storage types for irq API usage