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

Might want to put this with all the other virtual methods too.