Cond example update

add timeout,
check for isRunning(),
handle prematurely unblock,
iterations counter