Fixed crashes in Adobe Flash in Mozilla Firefox in some cases.
VBufBackend_t: hook WM_DESTROY and call renderThread_terminate if the window being destroyed is the root of a backend. This is necessary when the destroy winEvent is not fired (e.g. Adobe Flash).
Re #5367.