mlx5: Implement mlx5_core_modify_cq_by_mask().
Implement one CQ modify function supporting all firmware versions,
instead of having more variants of CQ modify.
Sponsored by: NVIDIA Networking
(cherry picked from commit 273bfac08ff838786c8b48bc7d3d7180b5f6a3be)