set the task_class to Thread in CookbookResource

this will prevent resource crashes during deserialization of cookbook objects

See https://github.com/RiotGames/vagrant-berkshelf/issues/51 for details

This should also be merged into the 1.2-stable branch and a 1.2.5 release should go out to ensure Berkshelf 2 users get this fix.