fix race in setepoch; waitFailure should take 'set' cmd