[PATCH v5 2/2] server: Destroy child window from another thread only if it's not running.