TIMOB-13779: Remove access to V8's gc except for profiling.
Merge pull request #4265 from ayeung/timob-13779

TIMOB-13779: Remove access to V8's gc except for profiling.