issue #19456: don't try to release no lock
issue #19456: ported fix for record locking and refresh
merge
merge
Merge pull request #26 from shackbarth/19456

issue #19456: release lock before refresh