MFC r331822:
Reorganize health recovery in mlx5core.
- Move the semaphore locking and unlocking to the same function.
- Flags are no longer needed if the reset and crdump will be done in the same function.
Submitted by: slavash@
Sponsored by: Mellanox Technologies