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)
SERVER-13770 Helpers::removeRange should check all runner states
(cherry picked from commit 94ff38a9c47047f0f86fd1ae2bbfa1f3a201aa6e)

Conflicts:
	src/mongo/db/dbhelpers.cpp
Merge remote-tracking branch 'upstream/v2.6' into v2.6