Rewrite raw memcard threading code. Intended to fix issue 7484.

"signaled" seems to be the most common spelling.