issue #19793: fixed lock binding