[PATCH 4.14 082/100] net/mlx4_core: Fix wrong calculation of free counters