Make GSR and D thread-local.