util: Move the text direction stuff out of MetaUI

GTK+ doesn't need to be initialized to get locale direction,
which means we can do this without bringing up MetaUI at all.
prefs: Fix indentation