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

WTF, dolphin was 4-space tabs FOREVER. I will just revert this line. That is fucking retarded.