Updated context flow provider compatible with Core 3.3. Added lock around automatic registration in container implementation in order to synchronize registration when multiple threads trigger automatic registration concurrently. Alleviates an occasionally observed bug caused by a race conditions.