fix thread stuff for cinder >= 0.8.5