Revert "core: Fix msg_send_receive"

This reverts commit c0b0110de911fe0fdb759db00dccccff4f294811.