Don't close temporary objects on memory debug mode

It will be a memory leak when temporary objects are closed on
grn_ctx_fin().