Added synchronization mechanisms to lock access to array of open ports