invalidate foreign key cache during reload_dbdef, fixes upgrade problem on #25536