Devirtualize all uses of core.thread.Thread.slock.

Also store it in the data segment like `gc.gc.gcLock` so that it doesn't leak when the runtime shuts down.