_longopt: Run commands in C locale.

This is a follow-up to commit 822735146f