Added ThreadLocalSlot<T> for thread-local storage using posix calls