core/msg: use disableIRQ and restoreIRQ

DO NOT MERGE