net/mlx4_core: Fix quota handling in the QUERY_FUNC_CAP wrapper