Called when a watched reference is expected to be weakly reachable, but hasn't been enqueued
in the reference queue yet. This gives the application a hook to run the GC before the RefWatcher checks the reference queue again, to avoid taking a heap dump if possible.