minor fixes to Thread code sHandlerInstalled_