Fix flaky Syncer tests by not overwriting tests data
Created by: mrnugget
Re-enables and fixes the tests disabled here: https://github.com/sourcegraph/sourcegraph/pull/23831
Previously the test accessed and modified codeHosts
from different
goroutines. With this change we overwrite the hook instead of the data,
avoiding the race.