issue #19456: don't try to release no lock
Merge pull request #41 from shackbarth/19456

issue #19456: don't try to release no lock