authorization: handle strdup failures in realm file parser (v2)

v2 of the patch fixes:
- the opening brace does not belong on a separate line
- if only one of the strdups fails, do not forget to free the other one
authorization: handle failure of hash_add_unique properly

in case of failure other than EEXIST the error was ignored and the config entry was silently skipped.