Return message length to processes blocked on recv

sys_send() wasn't setting the return code when unblocking a process that
was waiting for a message.