Thread locals extension.