Wait on a condition variable rather than sleeping in LSM workers.  This can be signalled during close, speeding up tests that open and close many LSM trees (such as test/fops).