Initializing _QUEUE_INSTANCE in a thread safe way