Optimization in Development Tools
Instead of reinventing the wheel, reuse QThreadStorage.
While at it, speed-up DUChainItemFactory::copy by only accessing
the TLS once, then operate on a bool& afterwards.
Now all cases are equally fast, independently of the value of what
constant value is currently set or requested.