Bug 886377 - Make EventTargetChain's ELM count optimization main-thread-only, r=jst