Re-introduce resource lock
Re-introduce resource lock

The resource lock for TCP/IP ports was erroneously removed in a prior
commit. Re-introduce it to avoid contention over the resource.

GoogleChrome/wptdashboard,GoogleChrome/wptdashboard,GoogleChrome/wptdashboard