remove illegal thread_local from static methods

GCC not complaining is likely a bug; clang does however