config: leach: update up_* stuffs
apps: debug: add custom system debug command

1. Add debug code.
2. Update leach defconfig for system debug.
3. Update leach defconfig to reduce default pthread stack size.