netty transport: retry binding.

Travis build fails once in a while because it fails to bind to a port.
Retry binding to the port for 5 times before giving up in case this is
a transient issue.