common/mlx5: wrap memory allocation on Linux