initialize free_ports set before acquire one

Fixing the update handle issue

Change-Id: I21a894479200a13541a00824ac1dbbaf63e84bbb
Merge "initialize free_ports set before acquire one"