Mark DataRaceDetector::is_racy(const PartialString&) as internal

We only use this function for testing purposes.