Fix the stale port creation issue when the allocation pool is exhausted

Change-Id: Iac01a966fa81a9e0f760901ff83152378deec0a0
Closes bug: #1365489
Merge "Fix the stale port creation issue when the allocation pool is exhausted" into R1.10