thread: clean up

This commit changes thread API.
intel64: split asm.h
reorganize base.h
replace magic numbers with THREAD_NAME_MAX
tools/disasm: tiny fix
intel64: refactor print.c
thread: abort blocking a sender thread if another thread is waiting on the post
expand threads' posts size dynamically