Fix test failure for test/functionalities/connect_remote/TestConnectRemote.py when port 12345 is already in use

Reviewed at http://reviews.llvm.org/D5221