Fix #1343: Add a RetryingComJSEnv and use it for CI

Why don't you need to synchronize to access `curRunner` here?