osx: thread starts before the assignments

Changed the order of the member assignments since the thread may start just before the parameters are assigned. 

This especially happens when the osx scheduler is very busy.