Better diagnostics for race conditions.