Mixed slot index of a thread by stable identity, or null when absent.
int? indexOfThread(String id) { final ordinal = _threadById[id]; return ordinal == null ? null : _threadPositions[ordinal]; }