unify closing a document for replacing it in CloseDocumentInTab (fixes double-taskbar issue)
update tab width whenever the tab bar is resized (and not too soon)
remove references to OWN_TAB_DRAWING (building without is untested and fails)