make UnitOfWork::getLocale public and rename to getCurrentLocale to make clearer

cc @dantleech