issue #19456: don't update session on a lock refresh