Fix race condition with checking several values to determine if a map-reduce job is done.