Fix Thread#stack, add tracking of current threads