Improve thread-safe correctness by setting created value last.

This avoids a second thread from using the created object (TList for example) before it is completely set/filed.