Gevent compatibility: Don't wait indefinitely on work queue

This change is for gevent compatibility.  Rather than blocking indefinitely on the work queue we timeout and continue.