Adds thread saftey to archives and resource container.