Removing unnecessary uses of unsafe to access Sync statics.

I don't remember whether these only recently stopped being necessary, but you can now use regular statics here and so avoid the use of unsafe.