Added a pth_waiting_timeout utility that tells you the next timeout for waiting threads

Signed-off-by: Andrew Miller <amiller@dappervision.com>