Issue #2379897 by Alan Evans: cconfirm lock_id before releasing lock