Also update local_port value after binding a TCP socket.

The [local_port] will hold the random port that was bound to.