Fix HDassert in H5Oidxinfo
Close index from H5D_close