[CHEF-4010] Ensure lock release for all operations
[CHEF-4010] Ensure lock release for all operations

(cherry picked from commit b02e6d25b18e87a416b8672baca7d30621c01583)

SUSE-Cloud/chef,SUSE-Cloud/chef,SUSE-Cloud/chef,SUSE-Cloud/chef,SUSE-Cloud/chef,SUSE-Cloud/chef