Attempt to fix a deadlock when quitting the VideoEngine thread