A thread-safe LazyObject class for Python.