fix segfault in _msg_receive
fixes #272
output a DEBUG message when queue_msg fails
always enable interrupts again when we leave the function