Check thread attributes before spawning the thread