mem-pool: Fix potential memory leak and lost leases when reassigning leases