MB-9808: Catch unsupported locale setting exception

Change-Id: I37e34521e830e39660d92f12196d594e9ad3350c
Reviewed-on: http://review.couchbase.org/31561
Reviewed-by: Steve Yen <steve.yen@gmail.com>
Tested-by: Bin Cui <bin.cui@gmail.com>