added a thread-safe LazyInitOnce class.