Add error checking to mboxlib recv

Change MBoxCheckMisc to handle both send and recv.
Also removed unnecessary commented code in runtime_entry.c