list traversal fix for thread.c

so list traversal was running into the header elements, so we had lots of memory faults.  Hopefully this fixes all of those by only looping/searching through interior elements.