locale_gen: Fix default value of state

According to the doc, default value of state is 'present'
locale_gen: Support complex locale name

Such as 'ca_ES.UTF-8@valencia UTF-8'