alpm: Environment initialization refactoring

    - Move pk_alpm_configure_environment to it's own file.
    - Replaced the old safeguard by one using g_once_init_enter.