copied from https://fedorahosted.org/389/ticket/48045
This is more code I thought would be needed, but is unnecessary. Anything related to {{{ struct stack_state thread_stack; / stack of ns_thread_t / PRLock thread_stack_lock; / to support ns_thread_acquire/release / PRCondVar thread_stack_cv; / to support ns_thread_acquire/release */ }}} in ns_thrpool_t, and thread_stack_wait() and thread_stack_notify()
commit c80eea54bb36cfbd629593e8e9a48b4254cb4017