During registration, the Real Name field is always required regardless of the Config option that is responsible for requiring the real name. We have to make the Real Name field follow the mentioned Config setting.
I don't know what is the config setting that is responsible for requiring the real name but it is not enabled by default. If you know what is the config setting, please tell me.