Keep working around testing non blocking calls in threaded environment.

Since we keep testing non blocking methods in a system that has numerous
background threads do work. So we have to wait for the work to be done, but
we don't want to use blocking calls since we are trying to verify the non
blocking versions.