Monitoring and Enforcement of Safety Hyperproperties