fixed global leak REFERENCE_BY_ID in gridfs grid_store.