[MLX4] Free spinlock in the case of an error.