net/mlx4_core: Protect QUERY_PORT wrapper from untrusted guests