Also patch threadlocal