fixup "base: setup thread object for main thread in CRT0"

ref #989