Fix discoverd stderr race with DEBUG=1

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>