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