[PATCH 4.19 128/422] IB/mlx5: Dont hold spin lock while checking device state