How to write an atomic property wrapper for static variable?

tangential to the core discussion here, but since this came up recently, using a struct property wrapper to wrap values in a mutex probably does not do what one generally wants it to.