Add two interruption points in dnsseed thread to make shutdown in early stage quickly

Signed-off-by: Huang Le <4tarhl@gmail.com>