Fix TaggedLogging to allow loggers to be instantiated multiple times without having to share the stack of tags

This is accomplished by using a unique key for the thread-local tag list. Fixes #9064.