TThreadInstanceProvider

Implements an instance provider that returns the same instance per thread.