mesa: fix glthread marshal build issues on platforms without PTHREAD