Scenario that tests thread-local storage using the 'thread_local' keyword