VideoEngine: fix deadlock and add many comments to abortRendering()