ThreadStorage: add an implementation which never stores in the main thread, but has a small overhead