Fix invalid thread access issue when reopening the view

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=422258 for details