Fix setting shared localization for NULL locale