small fixes
completion for subcommands
complete thread ids for subcommands printtree and printgui
added command to identifie useless locks