Updates to make sure extensions are only loaded once if multiple threads request the same extension at the same time.