Add support to fake sem_timedwait

Signed-off-by: Jon Ringle <jringle@gridpoint.com>