Fix resizeEvent blocking when the thread has shut down
Fix resizeEvent blocking when the thread has shut down

jeremyherbert/mgba,MerryMage/mgba,sergiobenrocha2/mgba,askotx/mgba,fr500/mgba,fr500/mgba,nattthebear/mgba,MerryMage/mgba,Touched/mgba,bentley/mgba,fr500/mgba,libretro/mgba,iracigt/mgba,sergiobenrocha2/mgba,mgba-emu/mgba,AdmiralCurtiss/mgba,mgba-emu/mgba,matthewbauer/mgba,iracigt/mgba,Touched/mgba,zerofalcon/mgba,sergiobenrocha2/mgba,cassos/mgba,bentley/mgba,Anty-Lemon/mgba,zerofalcon/mgba,Iniquitatis/mgba,libretro/mgba,askotx/mgba,cassos/mgba,zerofalcon/mgba,MerryMage/mgba,jeremyherbert/mgba,nattthebear/mgba,libretro/mgba,Anty-Lemon/mgba,Iniquitatis/mgba,Iniquitatis/mgba,AdmiralCurtiss/mgba,jeremyherbert/mgba,Anty-Lemon/mgba,mgba-emu/mgba,AdmiralCurtiss/mgba,sergiobenrocha2/mgba,iracigt/mgba,libretro/mgba,askotx/mgba,Anty-Lemon/mgba,sergiobenrocha2/mgba,askotx/mgba,Touched/mgba,Iniquitatis/mgba,jeremyherbert/mgba,iracigt/mgba,matthewbauer/mgba,fr500/mgba,cassos/mgba,libretro/mgba,mgba-emu/mgba