Fix potential overflow in AdminClient.waitForCompletion