Checks if the given id belongs to a thread.
id
bool hasThread(int id) { return _sequencesById[id] != null; }