common: Replace `locale_gen` module with commands

The module has issues detecting the locales:

  https://github.com/ansible/ansible/issues/7289

Reverts parts of 6c4b5de