Fix DisconnectFromHandlerThread test