(ITS#7718) mdb_cursor_del() segfault on last entry