C: adjust defined &gv optimiziation for threads

also todo still failing tests, and push Attribute::Handlers forward