rtapi_msgd: use assert() without side effects

thanks to Jeff Epler.