Add the thread flags to struct target_thr_param as required on FreeBSD
FreeBSD also supports thread local storage using __thread