net/mlx5: fix locking in xstats functions