You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: lock_release_wrapper.go
    path of file: ./repos/werf/pkg/deploy/helm/command_helpers
    
    the code of the file until where you have to start completion: package command_helpers

import (
	"context"

	"github.com/werf/werf/pkg/deploy/lock_manager"
)

func LockReleaseWrapper(ctx context.Context, releaseName string, lockManager *lock_manager.LockManager, cmdFunc func() erro
    
func LockReleaseWrapper(ctx context.Context, releaseName string, lockManager *lock_manager.LockManager, cmdFunc func() error) error {
	if lock, err := lockManager.LockRelease(ctx, releaseName); err != nil {
		return err
	} else {
		defer lockManager.Unlock(lock)
	}

	return cmdFunc()
}