Stub out osquery function in reset test to avoid flaky behavior (#2745)