Add gcc.gthr implementation as a generic wrapper for internal thread support