Add struct PeersDict to hold the pair of <key: int peer_id, val: int tid>
Fix bug of original id-controller: g_joinable