fix bug in native implementation of H5Oopen_by_idx.