Adapt GDB commands to ldso changes

Issue #1042.
base: ABI specific stack creation

ref #1042
fixup "base: add startup lib to the base libs"
thread: init thread cap for non-core main threads

ref #989
base: enable tracing not before reinit_main_thread

ref #989