Seaching for the miniTRB thread has been transformed in a safe function