net/mlx4_core: Fix deadlock when switching between polling and event fw commands