Configure deprecation for thread-local-storage