PR231695 describes the issue with locale data built on LE system (amd64) when used on BE system (powerpc).
This essentially reverts rS308170 (but it made the task of finding the fields to be converted much easier, thanks!) and:
- add -b/-l flags to localedef to specify big/little endian order for output (looked up in cap_mkdb and modeled after it)
- make share/ctypedef and share/colldef use the new flag
- add localedef to targets/pseudo/userland/Makefile.depend so that we use the binary we built during boostrap, and not the one from the build system itself