Fix "Unknown locale ..." when creating locale with multiple resources.