scheduler: properly fix race condition in round robin initialization

f91156e48342e39ca85c3963c249907097de7188 fixed the data race, but not
the race condition itself.