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

Feel free to present a better solution, I don't think there is one unless the scheme is changed to be a queue (I thought about it, but this was the old behavior...so, meh).