Use new Select API in zfarm; simplify instrumentation