Thread-safe atomic properties and locking optimizations