Added method of setting a static thread key.