Some more marginal concurrency bugs in the DOM wrapper setup.