[PATCH 4.4 212/312] net/mlx4_core: Fix potential corruption in counters database