authorization: handle strdup failures in realm file parser

This prevents a NULL ptr deferencing if strdup failed.