Thread safety for components