fix racecondition in the namescache