rd_kafka_topic_new() was not completely thread-safe

If multiple app threads simultaneously tried to add the same topic
it was sometimes added multiple timess, this is now fixed.