issue #19456: Fix problems with releasing lock and renew timer.