fixed double free of per thread error state
Merge branch 'v2.2' of https://github.com/embree/embree into v2.2