issue #19456: release lock before refresh
Merge pull request #125 from shackbarth/19456

issue #19456: release lock before refresh