Fix the flakiness of JettyThreadLimitTest