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

mistakenly have the testing pull request in here, too.