cores.litedram: move name conflict detection to the builder.