set the task_class to Thread in CookbookResource

this will prevent resource crashes during deserialization of cookbook objects