Get rid of using currentThread() in thread-specific destructors. Also, remove dom objects before detachThread() so they don't trip over currentThread() issue.
Created attachment 29441 [details] Proposed patch
Chromium side of CR, for more info: http://codereview.chromium.org/67061
Landed: http://trac.webkit.org/changeset/42504