issue #19456: added releaseLock
issue #19456: lock and release working