More changes to perllocale and POSIX.pod setlocale

These address some concerns from John Peacock.
PATCH: [perl #119443] Blead won't compile on wince

This commit adds #if's to cause locale handling code to compile on
platforms that don't have full-featured locale handling.  The commits
mentioned in the ticket did not adequately cover these situations.
smoke