Make the GC inhibition APIs use a counter rather than a boolean.