SERVER-9032: Validate locale on startup

On some Linux machines, users may have not have a locale set which will
cause boost to fail. Validate that the user has a locale set, and if not,
give a useful error message, and exit.

(cherry picked from commit ff70eb640552c049538a03d174edbc2c0311c8bd)