Split running finalizer phase and unbind phase

Because some objects don't have finalizer but they should be unbound
related Groonga objects to detect whether the Groonga object is closed.