icp: connect to pbrpc endpoint in pbrpc thread

fixes #52