check thread existence before creating it