Merge pull request #778 from shuffle2/fix-memcard-flush Rewrite raw memcard threading code. Fixes issue 7484.