[core] do not silently re-enable gc (#20864)
[core] do not silently re-enable gc (#20864)

In our code, we wish to have control over when GC runs. We do this by `gc.disable()` and then manually triggering GC at moments that work for us. This does not work if Ray re-enables GC.

Co-authored-by: hauntsaninja <>
ray-project/ray,ray-project/ray,ray-project/ray,ray-project/ray,ray-project/ray,ray-project/ray,ray-project/ray,ray-project/ray