Commits
Neil Fortner committed ae0db193b65
Remove spinlock waiting for closing thread, replace with wait on condition variable. Only allow one internal thread to wait at once. Should substantially improve performance. Other minor improvements. Tested: ummon, jam, koala, ostrich, emu