MDEV-6759: innodb valgrind failures

Fix failure seen on dict_foreign_remove_partial.