mlx4_core: fix memory leak at multi_func_cleanup