Add QThread_Cancel, use it to cancel master servers resolve threads at shutdown