Fix bad logic when ensuring right to release queue lease.