Add SmartGrnObj to use RAII for grn_obj *