net/mlx: add debug checks to glue structure