Hack to fix tearing for 3DS.

The same hack I wrote about in the GBA temp thread. This seems to work favorably with most roms, except some of the more laden ones (like Shantae or BADAPPLE.gbc) which run slower when compared to before.