bulk: Detect cycles before starting build