ThreadSafeStack implemented.