Fixed bug in timeout functions that occured when there was only one item in the list.  This cause the thread to hang when it tried to lock_access on a junk pointer.
Merge pull request #2 from Eosis/pThreadHang

Fixed bug in timeout functions that occured when there was only one item in the list. This cause the thread to hang when it tried to lock_access on a junk pointer.

Thanks to Rupert