Fix a bug of grn_dat_cursor.

The old grn_dat_cursor returns wrong keys when used with
GRN_CURSOR_BY_ID and (offset or limit) after deleting keys.