Sebastian Lackner : browseui: Avoid race-conditions when progress dialog is released before thread terminates.