issue #19456: turn off lock refresh upon exit